package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Classroom;
import com.qdu.mapper.ClassroomMapper;
import com.qdu.service.ClassroomService;
@Service
public class ClassroomServiceImpl implements ClassroomService{
	@Autowired
	private ClassroomMapper classroomMapper;

	@Override
	public Classroom selectClassroomById(int classrmid) {
		return classroomMapper.selectClassroomById(classrmid);
	}

	@Override
	public boolean addClassroom(Classroom classroom, int buildingId) {
		return classroomMapper.addClassroom(classroom, buildingId);
	}

	@Override
	public boolean modifyClassroom(Classroom classroom, int buildingId) {
		return classroomMapper.modifyClassroom(classroom, buildingId);
	}

	@Override
	public boolean deleteClassroomById(int classrmid) {
		return classroomMapper.deleteClassroomById(classrmid);
	}

	@Override
	public List<Classroom> selectAllClassroom() {
		return classroomMapper.selectAllClassroom();
	}

}
